<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MessageAlert
 *
 * @author Administrador
 */
class MessageAlert extends TTemplateControl {
    function __construct(){
        $this->ensureChildControls();
        propel::init($this->Application->Parameters["PropelConfigFile"]);
        if(!isset($_SESSION["IpvuSgrhIdUsuario"])){
            return;
        }
        $idusuario = $_SESSION["IpvuSgrhIdUsuario"];
        $usuario = UsuarioPeer::retrieveByPK($idusuario);
        $ds = new PropelDataSource("Recordatorio","",MethodType::Custom,"Recordatorios");
        $data = $ds->CreateDataSource($idusuario,$usuario->getIdrol());
        if(count($data)>0){            
            $this->imgIcono->ImageUrl = "themes/sgrh/images/oldMsg.png";
        }
    }
}
?>
